package com.woniu.repaircenter.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.woniu.repaircenter.models.dto.RepairDTO;
import com.woniu.repaircenter.models.dto.RepairListDTO;
import com.woniu.repaircenter.models.param.SelectRepairParam;
import com.woniu.repaircenter.service.model.Repair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 维修记录表 Mapper 接口
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
@Mapper
public interface RepairMapper extends BaseMapper<Repair> {

    Integer addRepair(Repair repair);

    List<RepairListDTO> selectRepairList( SelectRepairParam param);

    RepairDTO selectRepairById(@Param("repairId") Long repairId,@Param("repairNum") String repairNum);

    Integer updateRepair(Repair repair);

    Repair selectRepairByNum(@Param("repairNum") String repairNum);

    List<RepairListDTO> selectRepair(Repair repair);
}
